
import os.path

path = 'D:/temporary'
print path
print os.path.basename(path)
print os.path.dirname(path)

info = os.path.split(path)
print info

path2 = os.path.join('D:/', 'workspaces')
print path2

pathList = [path, path2]
print os.path.commonprefix(pathList)

print '================='

path = 'D:/temporary/Spring.in.Action.3rd.Edition.pdf'
print os.path.isdir(path)
print os.path.isfile(path)
print os.path.getsize(path)
print os.path.getatime(path)
print os.path.getctime(path)
print os.path.getmtime(path)



import glob
print glob.glob('D:/*')

